package io.xxx.xbutler.client;

import io.xxx.xbutler.domain.Material;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("x-material")
public interface MaterialClient {

    @GetMapping("/material/get")
    Material getMaterial(@RequestParam Long id);

    @GetMapping("/material/validate")
    boolean validateMaterial(@RequestParam Long id);
}
